<?php
final class Slog_String
{
	static public function camelCaseToUri($text, $separator = '-')
	{
		return ltrim(strtolower(preg_replace('/([A-Z]{1})/', $separator.'$1', $text)), $separator);
	}
	
	static public function camelCaseToVar($text)
	{
		//return strtolower(ltrim(preg_replace('/([A-Z]{1})/', '_$1', $text), '_'));
		return self::camelCaseToUri($text, '_');		
	}
}